package com.zy.cat.entity.game;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 9趣猫游戏中滚动条显示数据
 * @author Link
 * @date 2019-10-30 09:14
 */
@Entity
@Table(name = "zy_cat_scroll_bar_info", indexes = {
		@Index(name = "id", columnList = "id")})
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("9趣猫游戏中滚动条显示数据")
public class CatScrollBarInfo {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(columnDefinition = "INT(32) NOT NULL AUTO_INCREMENT COMMENT '滚动条数据ID'")
	@ApiModelProperty(value = "滚动条数据ID", example = "1001")
	private Integer id;
	
	@Column(columnDefinition = "VARCHAR(255) NOT NULL  COMMENT '滚动条内容'")
	@ApiModelProperty(value = "滚动条内容", example = "燃烧的蔬菜")
	private String content;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '滚动条展示类型，（0.刮刮卡游戏、1、水果机）'")
	@ApiModelProperty(value = "滚动条展示类型，（0.刮刮卡游戏、1、水果机）", example = "1")
	private int stype;

	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '滚动条数据类型，（0.昵称、1、头像地址、2. 姓氏、3、名）'")
	@ApiModelProperty(value = "滚动条数据类型，（0.昵称、1、头像地址、2. 姓氏、3、名）", example = "1")
	private int dtype;
	
	@Column(columnDefinition = "VARCHAR(20) NOT NULL  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56:666")
	private String ctime;
	
	@Column(columnDefinition = "VARCHAR(20) NOT NULL  COMMENT '最后更改时间'")
	@ApiModelProperty(value = "最后更改时间", example = "2019-02-22 12:56:56:666")
	private String ltime;

	public CatScrollBarInfo(String content, int stype, int dtype, String ctime, String ltime) {
		super();
		this.content = content;
		this.stype = stype;
		this.dtype = dtype;
		this.ctime = ctime;
		this.ltime = ltime;
	}
	
	
}
